import request from '@/utils/request'
export default {
    add(data) {
        return request({
            url: '/v3/organization/personDepartmentMapper/add',
            method: 'post',
            data
        })
    },
    edit(data) {
        return request({
            url: '/v3/organization/personDepartmentMapper/edit',
            method: 'post',
            data
        })
    },
    delById(no) {
        return request({
            url: `//v3/organization/personDepartmentMapper/delByEmployeeNo?no=${no}`,
            method: 'get',
        })
    },
    delListById(list) {
        return request({
            url: `/v3/organization/personDepartmentMapper/delListByEmployeeNo?noList=${list}`,
            method: 'get'
        })
    },
    //条件查询
    queryByCondition(data) {
        return request({
            url: '/v3/organization/personDepartmentMapper/queryByCondition',
            method: 'post',
            data
        })
    },
    //分页查询
    queryPageByCondition(data) {
        return request({
            url: '/v3/organization/personDepartmentMapper/queryPageByCondition',
            method: 'post',
            data
        })
    },
    getStaffListByCondition(params) {
        return request.post("v3/organization/personDepartmentMapper/queryByCondition", {
            organizationNo: sessionStorage.organizationNo,
            personNo: params
        });
    },
}
